package com.parfinex.study.p2.mod201.entity;

public class Employee {
    //1.定义私的有成员变量
    private int id;
    private String NAME;
    private String gender;
    private double salary;
    private double bonus;
    private String join_date;//在数据库中为date类型，这里可以定义为String类型，后面在通过格式化工具转成date类型

    //3.提供空构造

    public Employee() {
    }

    //2.提供公有的GET和SET方法

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNAME() {
        return NAME;
    }

    public void setNAME(String NAME) {
        this.NAME = NAME;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public String getJoin_date() {
        return join_date;
    }

    public void setJoin_date(String join_date) {
        this.join_date = join_date;
    }
    //4.输出
    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", NAME='" + NAME + '\'' +
                ", gender=" + gender +
                ", salary=" + salary +
                ", bonus=" + bonus +
                ", join_date='" + join_date + '\'' +
                '}';
    }
}